package org.csc.sss.core.repository;

import org.csc.sss.core.model.SysUserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SysUserRoleRepository extends JpaRepository<SysUserRole, String>, JpaSpecificationExecutor<SysUserRole> {

    /**
     * 根据userId获取角色
     * @param userId
     * @return
     */
    List<SysUserRole> findByUserId(String userId);
}
